import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
  {
    path: "/idnex",
    component:()=>import("../views/Index.vue"),//主要页面
    children:[
      {
        path:"/index/home",
        component:()=>import("../views/Home.vue"),//首页
      },
      {
        path:"/index/connect",
        component:()=>import("../views/Connect.vue"),//连接
      },
      {
        path:"/index/service",
        component:()=>import("../views/Service.vue"),//服务
      },
      {
        path:"/index/shop",
        component:()=>import("../views/Shop.vue"),//首页
      },
      {
        path:"/index/mine",
        component:()=>import("../views/Mine.vue"),//首页
      },
    ]

  },
  
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
